ETF_loadStats = {
	params["_data","_player"];

	_player setUnitLoadout _data;

	/*
	_res = _info select 0;
	
	_items = _res select 0;
	_clothes = _res select 1;
	_weapons = _res select 2;

	_player setVariable ["itemsToSelect", _items, true];

	_player setVariable ["clothesToSelect", _clothes, true];

	_player setVariable ["weaponsToSelect", _weapons, true];

	{
		if ((_x select 1) isEqualTo _count) then {
			HRP_Items = _x select 0;
		};
	} forEach (player getVariable "itemsToSelect");

	{
		if ((_x select 1) isEqualTo _count) then {
			HRP_Clothes = _x select 0;
		};
	} forEach (player getVariable "clothesToSelect");

	{	
		if ((_x select 1) isEqualTo _count) then {
			HRP_Weapons = _x select 0;
		};
	} forEach (player getVariable "weaponsToSelect");

	if (player getVariable "weaponsToSelect" isEqualTo []) then {
		HRP_Weapons = [];
	};
	if (isNil "HRP_Weapons") then {
		HRP_Weapons = [];
	};
	if (player getVariable "clothesToSelect" isEqualTo []) then {
		HRP_Clothes = [];
	};
	if (player getVariable "itemsToSelect" isEqualTo []) then {
		HRP_Items = [];
	};

	diag_log format["ETF_loadStats :%1",_items,_clothes,_weapons];
	[_items,_clothes,_weapons] remoteExec ["M4_fnc_loadPlayerInfo", _player];
	*/
	
};